<!--@ 用户信息-->
<template>
	<view class="padding-lr padding-bottom-xl">
		<load-flex :loading="loading"></load-flex>
		<u-notify ref="uNotify" />
		<!-- 表单部分 -->
		<view class="text-black padding-bottom">
			<u-collapse :border="false" :value="activeNames" :key="time">
				<uni-forms ref="valiForm" labelWidth="375px" label-position="top">
					<uni-card :is-shadow="false" style="padding:0 !important" margin="1" padding='0'
						v-if="dataSource && dataSource.length>0" v-for="(item,index) in dataSource"
						:class="indexCardInfo >index?'':'pagesss'">
						<template v-slot:title>
							<u-collapse-item>
								<view slot="title" class="flex align-center">
									<view class="padding-right-sm">
										<u-badge type="success" max="99999" :value="index+1"></u-badge>
									</view>
									<view class="text-df">
										{{item.loanName?`${item.loanName?`${item.loanName}-(${item.loanRepayTotalAmount})`:''}`:`请点击展开录入第${index+1}网贷信息`}}
									</view>
								</view>
								<view slot="value" v-if="dataSource.length>1 && !item.id" class="cu-btn round sm bg-red"
									@click="handDel(index)">删除</view>
								<uni-forms-item label="网贷欠款平台名称" required>
									<uni-easyinput :disabled="indexCardInfo >index"
										:errorMessage="!item.loanName&&verify?true:false" v-model="item.loanName"
										placeholder="请输入网贷欠款平台名称" />
								</uni-forms-item>
								<uni-forms-item label="资金放款方(借款合同查询\如有多个都写)" required>
									<uni-easyinput :disabled="indexCardInfo >index" v-model="item.lender"
										:errorMessage="!item.lender&&verify?true:false" placeholder="请输入资金放款方" />
								</uni-forms-item>
								<uni-forms-item label="平台包含利息总欠款" required>
									<uni-easyinput :disabled="indexCardInfo >index"
										:errorMessage="!item.loanRepayTotalAmount &&verify?true:false"
										v-model="item.loanRepayTotalAmount" placeholder="请输入平台包含利息总欠款" type="number"
										:maxlength="8" />
								</uni-forms-item>
								<uni-forms-item label="还款绑定哪家银行" required>
									<uni-easyinput :disabled="indexCardInfo >index"
										:errorMessage="!item.repaymentBindingBank&&verify?true:false"
										v-model="item.repaymentBindingBank" placeholder="请输入还款绑定哪家银行" />
								</uni-forms-item>
								<uni-forms-item label="完整银行卡号(填写完整)" required>
									<uni-easyinput :disabled="indexCardInfo >index"
										:errorMessage="!item.repaymentBindingBankCard&&verify?true:false" type="number"
										:maxlength="30" v-model="item.repaymentBindingBankCard"
										placeholder="请输入完整银行卡号" />
								</uni-forms-item>
								<uni-forms-item label="现所在地" required>
									<uni-easyinput :disabled="indexCardInfo >index"
										:errorMessage="!item.currentLocation&&verify?true:false"
										v-model="item.currentLocation" placeholder="请输入现所在地" />
								</uni-forms-item>
								<uni-forms-item label="备用金额度(没有可以不用填写)">
									<uni-easyinput :disabled="indexCardInfo >index" v-model="item.reserveFund"
										type="number" :maxlength="8" placeholder="请输入备用金额度" />
								</uni-forms-item>
								<uni-forms-item label="注册预留绑定手机号" required>
									<uni-easyinput :disabled="indexCardInfo >index"
										:errorMessage="!item.reservedPhone&&verify?true:false" type="number"
										:maxlength="11" v-model="item.reservedPhone" placeholder="请输入注册预留绑定手机号" />
								</uni-forms-item>

								<uni-forms-item label="分了多少期">
									<uni-easyinput :disabled="indexCardInfo >index" type="number" :maxlength="3"
										v-model="item.byStages" placeholder="请输入分了多少期" />
								</uni-forms-item>
								<uni-forms-item label="月还款金额是多少">
									<uni-easyinput :disabled="indexCardInfo >index" type="number" :maxlength="8"
										v-model="item.monthlyRepaymentAmount" placeholder="请输入月还款金额是多少" />
								</uni-forms-item>
								<view @click="handCheck(index)">
									<uni-forms-item label="本次到期还款日" required>
										<uni-easyinput disabled :errorMessage="!item.repaymentDate&&verify?true:false"
											v-model="item.repaymentDate" placeholder="请选择本次到期还款日" />
									</uni-forms-item>
								</view>
								<uni-forms-item label="计划还款周期" required>
									<uni-easyinput :disabled="indexCardInfo >index"
										:errorMessage="!item.planRepaymentCycle&&verify?true:false" type="textarea"
										v-model="item.planRepaymentCycle"
										placeholder="请输入打算多久结清欠款或计划每个月拿出多少自己去偿还此笔款项？"></uni-easyinput>
								</uni-forms-item>
								<uni-forms-item label="逾期真实原因" required>
									<uni-easyinput :disabled="indexCardInfo >index"
										:errorMessage="!item.expectedRealReasons&&verify?true:false" type="textarea"
										v-model="item.expectedRealReasons" placeholder="请输入逾期真实原因" />
								</uni-forms-item>
								<text class="text-red text-sm">*如委托平台的单位和紧急联系人信息都一样，以下内容登记无需重复填写</text>
								<uni-forms-item label="借款时填写的单位名称">
									<uni-easyinput :disabled="indexCardInfo >index" v-model="item.reservedJobName"
										placeholder="请输入借款时填写的单位名称" />
								</uni-forms-item>
								<uni-forms-item label="借款时填写单位详细地址">
									<uni-easyinput :disabled="indexCardInfo >index" v-model="item.reservedJobAddress"
										placeholder="请输入借款时填写单位详细地址" />
								</uni-forms-item>
								<uni-forms-item label="紧急联系人姓名(1)">
									<uni-easyinput :disabled="indexCardInfo >index"
										v-model="item.emergencyContactNameOne" placeholder="请输入紧急联系人姓名" />
								</uni-forms-item>
								<uni-forms-item label="紧急联系人电话(1)">
									<uni-easyinput :disabled="indexCardInfo >index"
										v-model="item.emergencyContactPhoneOne" type="number" :maxlength="11"
										placeholder="请输入紧急联系人电话" />
								</uni-forms-item>
								<uni-forms-item label="紧急联系人关系(1)">
									<uni-easyinput :disabled="indexCardInfo >index"
										v-model="item.emergencyContactRelationshipOne" placeholder="请输入紧急联系人关系" />
								</uni-forms-item>
								<uni-forms-item label="紧急联系人姓名(2)">
									<uni-easyinput :disabled="indexCardInfo >index"
										v-model="item.emergencyContactNameTwo" placeholder="请输入紧急联系人姓名" />
								</uni-forms-item>
								<uni-forms-item label="紧急联系人电话(2)">
									<uni-easyinput :disabled="indexCardInfo >index"
										v-model="item.emergencyContactPhoneTwo" type="number" :maxlength="11"
										placeholder="请输入紧急联系人电话" />
								</uni-forms-item>
								<uni-forms-item label="紧急联系人关系(2)" required>
									<uni-easyinput :disabled="indexCardInfo >index"
										v-model="item.emergencyContactRelationshipTwo" placeholder="请输入紧急联系人关系" />
								</uni-forms-item>
							</u-collapse-item>
						</template>
						<view slot="actions" class="card-actions" v-if="!stagingShow && dataSource.length == index+1">
							<view class="card-actions-item" @click="hanstagingShow()">
								<uni-icons type="map" size="18" color="blue"></uni-icons>
								<text class="card-actions-item-text " style="color:blue">新增网贷信息</text>
							</view>
						</view>
					</uni-card>
				</uni-forms>
			</u-collapse>
		</view>
		<view style="padding-bottom: 100rpx;" class="box" v-if="stagingShow">
			<uni-card :is-shadow="false" style="padding:0 !important" margin="1" padding='1'>
				<template v-slot:title>
					<view class="flex align-center justify-between padding-sm">
						<view class="flex align-center">
							<view class="padding-right-sm">
								<u-badge type="success" max="99999"
									:value="dataSource.length>0?dataSource.length+1:1"></u-badge>
							</view>
							<view class="text-df text-black">
								填写贷款信息,(点击保存信息）
							</view>
						</view>
						<view class="cu-btn round sm bg-red sm" v-if="dataSource.length>0" @click="handeDelStagin()">
							{{`删除`}}
						</view>
						<view class="cu-btn round sm bg-blue sm" @click="handAdd()">{{`保存`}}</view>
					</view>
				</template>
				<uni-forms ref="valiForm" :rules="rulesFrom" :modelValue="stagingMode" labelWidth="375px"
					label-position="top">
					<uni-forms-item label="网贷欠款平台名称" required name="loanName">
						<uni-easyinput v-model="stagingMode.loanName" placeholder="请输入网贷欠款平台名称" />
					</uni-forms-item>
					<uni-forms-item label="资金放款方(借款合同查询\如有多个都写)" required name="lender">
						<uni-easyinput v-model="stagingMode.lender" placeholder="请输入资金放款方" />
					</uni-forms-item>
					<uni-forms-item label="平台包含利息总欠款" required name="loanRepayTotalAmount">
						<uni-easyinput placeholder="请输入平台包含利息总欠款" v-model="stagingMode.loanRepayTotalAmount"
							type="number" :maxlength="8" />
					</uni-forms-item>
					<uni-forms-item label="还款绑定哪家银行" required name="repaymentBindingBank">
						<uni-easyinput placeholder="请输入还款绑定哪家银行" v-model="stagingMode.repaymentBindingBank" />
					</uni-forms-item>
					<uni-forms-item label="完整银行卡号(填写完整)" required name="repaymentBindingBankCard">
						<uni-easyinput placeholder="请输入完整银行卡号" v-model="stagingMode.repaymentBindingBankCard" />
					</uni-forms-item>

					<uni-forms-item label="现所在地" required name="currentLocation">
						<uni-easyinput v-model="stagingMode.currentLocation" placeholder="请输入现所在地" />
					</uni-forms-item>
					<uni-forms-item label="备用金额度(没有可以不用填写)">
						<uni-easyinput v-model="stagingMode.reserveFund" type="number" :maxlength="8"
							placeholder="请输入备用金额度(没有可以不用填写)" />
					</uni-forms-item>

					<uni-forms-item label="注册预留绑定手机号" required name="reservedPhone">
						<uni-easyinput v-model="stagingMode.reservedPhone" type="number" :maxlength="11"
							placeholder="请输入注册预留绑定手机号" />
					</uni-forms-item>
					<uni-forms-item label="分了多少期">
						<uni-easyinput v-model="stagingMode.byStages" placeholder="请输入分了多少期" />
					</uni-forms-item>

					<uni-forms-item label="月还款金额是多少">
						<uni-easyinput v-model="stagingMode.monthlyRepaymentAmount" type="number" :maxlength="11"
							placeholder="请输入月还款金额是多少" />
					</uni-forms-item>

					<view @click="handStaging()">
						<uni-forms-item label="还款日" required name="repaymentDate">
							<uni-easyinput disabled style="pointer-events: none;background-color: #fff;"
								v-model="stagingMode.repaymentDate" placeholder="请选择还款日" />
						</uni-forms-item>
					</view>
					<uni-forms-item label="计划还款周期" required name="planRepaymentCycle">
						<uni-easyinput type="textarea" v-model="stagingMode.planRepaymentCycle"
							placeholder="请输入打算多久结清欠款或计划每个月拿出多少自己去偿还此笔款项" />
					</uni-forms-item>
					<uni-forms-item label="逾期真实原因" required name="expectedRealReasons">
						<uni-easyinput type="textarea" v-model="stagingMode.expectedRealReasons"
							placeholder="请输入逾期真实原因" />
					</uni-forms-item>
					<text class="text-red text-sm">*如委托者信用卡的单位和紧急联系人信息都一样，以下内容登记无需重复填写！</text>
					<uni-forms-item label="借款时填写的单位名称">
						<uni-easyinput v-model="stagingMode.reservedJobName" placeholder="请输入借款时填写的单位名称" />
					</uni-forms-item>
					<uni-forms-item label="借款时填写单位详细地址">
						<uni-easyinput v-model="stagingMode.reservedJobAddress" placeholder="请输入借款时填写单位详细地址" />
					</uni-forms-item>
					<uni-forms-item label="紧急联系人姓名(1)">
						<uni-easyinput v-model="stagingMode.emergencyContactNameOne" placeholder="请输入紧急联系人姓名" />
					</uni-forms-item>
					<uni-forms-item label="紧急联系人电话(1)">
						<uni-easyinput v-model="stagingMode.emergencyContactPhoneOne" type="number" :maxlength="11"
							placeholder="请输入紧急联系人电话" />
					</uni-forms-item>
					<uni-forms-item label="紧急联系人关系(1)">
						<uni-easyinput v-model="stagingMode.emergencyContactRelationshipOne" placeholder="请输入紧急联系人关系" />
					</uni-forms-item>
					<uni-forms-item label="紧急联系人姓名(2)">
						<uni-easyinput v-model="stagingMode.emergencyContactNameTwo" placeholder="请输入紧急联系人姓名" />
					</uni-forms-item>
					<uni-forms-item label="紧急联系人电话(2)">
						<uni-easyinput v-model="stagingMode.emergencyContactPhoneTwo" type="number" :maxlength="11"
							placeholder="请输入紧急联系人电话" />
					</uni-forms-item>
					<uni-forms-item label="紧急联系人关系(2)">
						<uni-easyinput v-model="stagingMode.emergencyContactRelationshipTwo" placeholder="请输入紧急联系人关系" />
					</uni-forms-item>
				</uni-forms>
				<view slot="actions" class="card-actions">
					<view class="card-actions-item" v-if="dataSource.length>0" @click="handeDelStagin()">
						<uni-icons type="trash" size="18" color="red"></uni-icons>
						<text class="card-actions-item-text " style="color:red">{{`删除`}}</text>
					</view>
					<view class="card-actions-item" @click="handAdd()">
						<uni-icons type="map" size="18" color="blue"></uni-icons>
						<text class="card-actions-item-text " style="color:blue">{{`保存信息`}}</text>
					</view>
				</view>
			</uni-card>
		</view>
		<view class="cu-bar bg-white tabbar  border shop"
			style="position: fixed;bottom: 0;left: 0;width: 100%; z-index: 9999;">
			<view class="btn-group">
				<button class="cu-btn bg-red round shadow-blur" @click="handeLaststep()">返回上一步</button>
				<button class="cu-btn bg-green round shadow-blur" @click="loadDataIndex(1)">无贷款信息提交</button>
				<button class="cu-btn bg-tnant3 round shadow-blur" @click="loadData">提交</button>
			</view>
		</view>
		<uni-calendar ref="calendar" :insert="false" @confirm="ConfirmCheck" />
		<uni-calendar ref="refStaging" :insert="false" @confirm="ConfirmStaging" />
		<TipsModal :uModalShow="uModalShow" :uModalContent="uModalContent" @uModalCle="uModalCle"
			@uModalCom="uModalCom" />
	</view>
</template>
<script>
	import TipsModal from '@/components/TipsModal/TipsModal.vue' //确定窗
	import loadFlex from '@/components/loadFlex/loadFlex.vue' //加载框
	import myApi from '@/utils/app.js' //调用接口使
	export default {
		components: {
			loadFlex,
			TipsModal
		},
		name: 'indexFrom',

		data() {
			return {
				activeNames: [],
				time: '',
				rulesFrom: {
					loanName: {
						rules: [{
							required: true,
							errorMessage: '请输入网贷欠款平台名称'
						}]
					},
					lender: {
						rules: [{
							required: true,
							errorMessage: '请输入资金放款方'
						}]
					},
					loanRepayTotalAmount: {
						rules: [{
							required: true,
							errorMessage: '请输入平台包含利息总欠款'
						}]
					},
					repaymentBindingBank: {
						rules: [{
							required: true,
							errorMessage: '请输入还款绑定哪家银行'
						}]
					},
					reservedPhone: {
						rules: [{
							required: true,
							errorMessage: '请输入注册预留绑定手机号'
						}]
					},
					repaymentDate: {
						rules: [{
							required: true,
							errorMessage: '请选择还款日'
						}]
					},
					planRepaymentCycle: {
						rules: [{
							required: true,
							errorMessage: '请输入计划还款周期'
						}]
					},
					repaymentBindingBankCard: {
						rules: [{
							required: true,
							errorMessage: '请输入银行卡号'
						}]
					},
					expectedRealReasons: {
						rules: [{
							required: true,
							errorMessage: '请输入逾期真实原因'
						}]
					},

				},
				sexArr: [{
					text: '线上',
					value: '0'
				}, {
					text: '线下',
					value: '1'
				}],
				verify: false,
				dataSource: [],
				model: {},
				loading: false,
				uModalTart: {}, //确定窗
				indexCardInfo: 0,
				uModalShow: false, //确定窗
				uModalContent: '你确定要删除吗？', //确定窗
				stagingMode: {},
				stagingShow: false,
			}
		},
		props: {
			ageSync: {
				type: Object,
				default: () => {}
			},
			dataPrimitive: {
				type: Object,
				default: () => {}
			}
		},
		watch: {
			ageSync: {
				handler(val) {
					if (val && val.data && val.data.length > 2) {
						this.stagingShow = false
						this.stagingMode = {}
						this.dataSource = []
						const arr = val.data[2]
						if (arr.length > 1) {
							this.dataSource = val.data[2]
						}
						if (arr.length == 0 || arr.length == 1) {
							this.stagingMode = {
								...arr[0]
							}
							this.stagingShow = true
						}
					}
				},
				immediate: true
			},
			dataPrimitive: {
				handler(val) {
					this.indexCardInfo = 0
					if (val && val.detailList && val.detailList.length > 0) {
						this.dataSource = []
						this.indexCardInfo = val.detailList.length
						this.dataSource = val.detailList
						this.stagingShow = false
					}
				},
				immediate: true
			},
		},
		methods: {
			onInfrom(item) {
				if (this.dataSource.length > 0) return this.stagingShow = false
				uni.pageScrollTo({
					scrollTop: 0,
					duration: 0
				});
				this.stagingShow = true
				this.stagingMode = {}
				if (!item) return
				if (this.dataSource.length == 0 && item.emergencyContactNameOne)
					this.$set(this.stagingMode, 'emergencyContactNameOne', item.emergencyContactNameOne)
				if (this.dataSource.length == 0 && item.emergencyContactPhoneOne)
					this.$set(this.stagingMode, 'emergencyContactPhoneOne', item.emergencyContactPhoneOne)
				if (this.dataSource.length == 0 && item.emergencyContactRelationshipOne)
					this.$set(this.stagingMode, 'emergencyContactRelationshipOne', item.emergencyContactRelationshipOne)
				if (this.dataSource.length == 0 && item.emergencyContactNameTwo)
					this.$set(this.stagingMode, 'emergencyContactNameTwo', item.emergencyContactNameTwo)
				if (this.dataSource.length == 0 && item.emergencyContactPhoneTwo)
					this.$set(this.stagingMode, 'emergencyContactPhoneTwo', item.emergencyContactPhoneTwo)
				if (this.dataSource.length == 0 && item.emergencyContactRelationshipTwo)
					this.$set(this.stagingMode, 'emergencyContactRelationshipTwo', item.emergencyContactRelationshipTwo)
				if (this.dataSource.length == 0 && item.reservedJobName) this.$set(this.stagingMode,
					'reservedJobName', item.reservedJobName)
				if (this.dataSource.length == 0 && item.reservedJobAddress) this.$set(this.stagingMode,
					'reservedJobAddress', item.reservedJobAddress)
			},

			handeDelStagin() {
				const that = this
				uni.showModal({
					title: '提示',
					content: `确定删除第   ${that.dataSource.length + 1}  条贷款信息吗`,
					success: function(res) {
						console.log(res)
						if (res.confirm) {
							that.stagingMode = {}
							uni.pageScrollTo({
								scrollTop: 0,
								duration: 0
							});
							that.stagingShow = false
						}

					},
				})
			},
			hanstagingShow() { // 新增
				let obj = {
					...this.dataSource[this.dataSource.length - 1]
				}
				if (obj.id) delete obj.id
				obj.loanName = ''
				obj.repaymentBindingBankCard = ""
				obj.loanRepayTotalAmount = ''
				this.stagingMode = {
					...obj
				}
				this.activeNames = []
				this.time = new Date().valueOf()
				uni.pageScrollTo({
					scrollTop: 0,
					duration: 0
				});
				this.stagingShow = true
				setTimeout(() => (
					this.onValiFrom()), 1000);
			},
			onValiFrom() {
				this.$refs.valiForm.validate().then(res => {

				})
			},
			handAdd(index) { //新增
				this.$refs.valiForm.validate().then(res => {
					let obj = {
						...this.stagingMode
					}
					this.dataSource.push(obj);
					this.stagingMode = {}
					uni.pageScrollTo({
						scrollTop: this.dataSource.length > 10 ? this.dataSource.length * 50 : 0,
						duration: 0
					});
					this.stagingShow = false
				}).catch(err => {
					this.onNotify({
						type: 'error',
						message: err[0].errorMessage,
					});
					uni.pageScrollTo({
						scrollTop: this.dataSource.length > 10 ? this.dataSource.length * 50 : 0,
						duration: 0
					});
				})
			},
			handDel(item) { // 删除
				this.uModalTart = item
				this.uModalShow = true
			},
			// 确定框 确定
			async uModalCom() {
				let Arr = this.dataSource.findIndex((item, index) => {
					if (index == this.uModalTart) {
						return true
					}
				})
				this.dataSource.splice(Arr, 1)
				this.onNotify({})
				this.uModalCle()
			},
			// 取消删除
			uModalCle() {
				this.uModalTart = 0
				this.uModalShow = false
			},
			async loadData(index) {
				if (index == 1) return this.$emit('onLoan', {});
				// 获取缺失项的索引和字段
				const missingItems = this.missingItemIndexes();
				// 如果有缺失项，则进行处理
				if (missingItems.length > 0) {
					this.verify = true;
					let errorMessage =
						`第${this.dataSource.length - missingItems[0].index}条数据`;
					if (missingItems[0].index == 0) {
						uni.pageScrollTo({
							scrollTop: 0,
							duration: 0
						});
					} else {
						uni.pageScrollTo({
							scrollTop: 0,
							duration: 0
						});
					}
					return this.onNotify({
						type: 'error',
						message: `红色框是必填选项    ${errorMessage}`,
					});
				}
				// 如果没有缺失项，继续处理数据
				if (this.stagingShow) {
					this.$refs.valiForm.validate().then(res => {
						let obj = {
							...this.stagingMode
						}
						this.dataSource.push(obj);
						this.stagingMode = {}
						this.stagingShow = false
						// 如果没有缺失项，继续处理数据
						const list = {
							detailList: this.dataSource,
						}
						this.$emit('onLoan', list)
					}).catch(err => {
						this.onNotify({
							type: 'error',
							message: err[0].errorMessage,
						});
						uni.pageScrollTo({
							scrollTop: this.dataSource.length > 10 ? this.dataSource.length * 50 : 0,
							duration: 0
						});
					})

				} else {
					const obj = {
						detailList: this.dataSource,
					}
					this.$emit('onLoan', obj)
				}
			},

			missingItemIndexes() {

				const fieldsToCheck = ['expectedRealReasons', 'planRepaymentCycle', 'repaymentDate', 'reservedPhone',
					'repaymentBindingBank', 'loanRepayTotalAmount', 'lender', 'loanName'
				];
				const missingItems = []; // 用于存储缺少字段的项
				// 遍历 dataSource 数组
				const arr = this.dataSource.filter(item => !item.id);
				arr.forEach((item, index) => {
					// 用于存储空字段的名称
					const emptyFields = fieldsToCheck.filter(field =>
						!item[field] || (typeof item[field] === 'string' && item[field].trim() === '')
					);
					if (emptyFields.length > 0) {
						// 存储缺少字段的项
						missingItems.push({
							index: index,
							emptyFields: emptyFields
						});
					}
				});
				return missingItems; // 返回所有缺少字段的项
			},
			onNotify(round) {
				this.$refs.uNotify.show({
					type: round.type ? round.type : 'success',
					message: round.message ? round.message : '删除成功',
				})
			},
			handCheck(index) { // 调用日期
				if (this.indexCardInfo > index) return
				this.model = {
					index: index
				}
				this.$refs.calendar.open();
			},
			ConfirmCheck(e) { // 选择完日期返回过的值
				this.$set(this.dataSource[this.model.index], 'repaymentDate', e.fulldate);
			},
			handeLaststep() { // 上一步
				this.$emit('onLast', 1)
			},
			handStaging() {
				this.$refs.refStaging.open();
			},
			ConfirmStaging(e) {
				this.$set(this.stagingMode, 'repaymentDate', e.fulldate);
			},
			loadDataIndex() {
				const that = this
				uni.showModal({
					title: '提示',
					content: `确定无贷款信息提交吗？`,
					success: function(res) {
						console.log(res)
						if (res.confirm) {
							that.loadData(1)
						}

					},
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.pagesss {
		::v-deep .is-disabled {
			background-color: #ffffff !important;
			color: #0d0d0d !important;
			pointer-events: none
		}
	}
</style>